package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * PdxmfsJs generated by hbm2java
 */
@Entity
@Table(name = "pdxmfs_js")
public class PdxmfsJs implements java.io.Serializable
{

    private Long id;
    private int version;
    private Pdxm pdxm;
    private String username;
    private String operation;
    private Date optdate;
    private String dysjk;
    private String dyzd;
    private String jflx;
    private Long hyfl;
    private BigDecimal myz;
    private BigDecimal byxz;
    private BigDecimal czz;
    private String qygm;

    public PdxmfsJs()
    {
    }

    public PdxmfsJs( Long id )
    {
        this.id = id;
    }

    public PdxmfsJs( Long id,
                     Pdxm pdxm,
                     String username,
                     String operation,
                     Date optdate,
                     String dysjk,
                     String dyzd,
                     String jflx,
                     Long hyfl,
                     BigDecimal myz,
                     BigDecimal byxz,
                     BigDecimal czz,
                     String qygm )
    {
        this.id = id;
        this.pdxm = pdxm;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.dysjk = dysjk;
        this.dyzd = dyzd;
        this.jflx = jflx;
        this.hyfl = hyfl;
        this.myz = myz;
        this.byxz = byxz;
        this.czz = czz;
        this.qygm = qygm;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "pdx_ID")
    public Pdxm getPdxm()
    {
        return this.pdxm;
    }

    public void setPdxm( Pdxm pdxm )
    {
        this.pdxm = pdxm;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "dysjk", length = 20)
    public String getDysjk()
    {
        return this.dysjk;
    }

    public void setDysjk( String dysjk )
    {
        this.dysjk = dysjk;
    }

    @Column(name = "dyzd", length = 20)
    public String getDyzd()
    {
        return this.dyzd;
    }

    public void setDyzd( String dyzd )
    {
        this.dyzd = dyzd;
    }

    @Column(name = "jflx", length = 1)
    public String getJflx()
    {
        return this.jflx;
    }

    public void setJflx( String jflx )
    {
        this.jflx = jflx;
    }

    @Column(name = "hyfl")
    public Long getHyfl()
    {
        return this.hyfl;
    }

    public void setHyfl( Long hyfl )
    {
        this.hyfl = hyfl;
    }

    @Column(name = "myz", precision = 18, scale = 4)
    public BigDecimal getMyz()
    {
        return this.myz;
    }

    public void setMyz( BigDecimal myz )
    {
        this.myz = myz;
    }

    @Column(name = "byxz", precision = 18, scale = 4)
    public BigDecimal getByxz()
    {
        return this.byxz;
    }

    public void setByxz( BigDecimal byxz )
    {
        this.byxz = byxz;
    }

    @Column(name = "czz", precision = 18, scale = 4)
    public BigDecimal getCzz()
    {
        return this.czz;
    }

    public void setCzz( BigDecimal czz )
    {
        this.czz = czz;
    }

    @Column(name = "qygm", length = 10)
    public String getQygm()
    {
        return this.qygm;
    }

    public void setQygm( String qygm )
    {
        this.qygm = qygm;
    }

}
